import { Button } from "antd";
import "./index.scss";
import { useNavigate } from "react-router-dom";

const Account = (): JSX.Element => {
  const navigate = useNavigate();
  const handleLoginout = () => {
    navigate("/login");
  };
  return (
    <div className="account">
      <Button type="primary" onClick={() => handleLoginout()}>
        退出登录
      </Button>
    </div>
  );
};

export default Account;
